# coding:utf-8
import json
import requests

api_url = 'https://openapi.saicmotor.com/opensaic/cloud/sms/v1.0.0/msg/419'
headers = {
    'Content-Type': 'application/json;charset=UTF-8',
    'X-SMS-SEED': '123456',
    'X-SMS-SIGN': '4627f9f6e635cac18bfa45aa6f0211db',
    'Authorization': 'Bearer ff67b056-dda9-41c9-a8e0-88165cb26739'
}
data = [
    {
        'content': 'string',
        'dest_id': 15102978312,
        'template_id': 36,
        'parameters': ['libb迁移测试']
    }
]
par = [
    {
        "content": "string",
        "dest_id": 15102978312,
        "template_id": 36
    }]

resp = requests.put(url=api_url, json=data, headers=headers)
if resp and resp.status_code in [200, 201]:
    print(json.loads(resp.text))
print(resp)
